package com.cqupt.qualityevaluation.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.cqupt.qualityevaluation.dao.schoolMapper;
import com.cqupt.qualityevaluation.pojo.school;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private schoolMapper schoolMapper;
    @GetMapping("row")
    public Object t(){
        QueryWrapper<school> queryWrapper = new QueryWrapper<>();
        queryWrapper.select("id");
        return schoolMapper.selectList(queryWrapper);
    }

}
